package com.meida.module.system.client.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.meida.common.enums.YesNoEnum;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 企业表
 *
 * @author flyme
 * @date 2019-06-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_company")
@NoArgsConstructor
@TableAlias("company")
public class SysCompany extends AbstractEntity {

    private static final long serialVersionUID = 1L;


    @TableId(value = "companyId", type = IdType.ID_WORKER)
    @ApiModelProperty(hidden = true)
    private Long companyId;


    @ApiModelProperty(value = "企业名称")
    private String companyName;


    @ApiModelProperty(value = "企业Logo")
    private String companyLogo;


    @ApiModelProperty(value = "联系人")
    private String linkMan;

    @ApiModelProperty(value = "企业账户名")
    private String accountName;

    @ApiModelProperty(value = "管理员账户")
    private Long managerId;


    @ApiModelProperty(value = "联系电话")
    private String linkTel;


    @ApiModelProperty(value = "主营范围")
    private String businessScope;


    @ApiModelProperty(value = "地址")
    private String companyAddress;


    @ApiModelProperty(value = "营业执照")
    private String businessLic;


    @ApiModelProperty(value = "企业类型")
    private String companyType;

    @ApiModelProperty(value = "企业邮箱")
    private String companyEmail;


    @ApiModelProperty(value = "营业执照号")
    private String businessLicNo;


    @ApiModelProperty(value = "企业简介")
    private String companyDesc;

    @ApiModelProperty("区")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long areaId;

    @ApiModelProperty("市")
    private Long cityId;

    @ApiModelProperty("省")
    private Long proId;

    @ApiModelProperty("省市区名称")
    private String areaName;

    @ApiModelProperty(hidden = true, value = "认证状态")
    private Integer auditState;

    @ApiModelProperty(hidden = true, value = "设计端登录状态")
    private Integer designState;

    @ApiModelProperty(value = "审核意见")
    private String auditContent;

    @ApiModelProperty("推荐状态")
    private YesNoEnum recommend;

    @ApiModelProperty(hidden = true, value = "推荐人")
    private Long referrerUserId;

    @ApiModelProperty(value = "访问量")
    private Integer visitCount;
    @ApiModelProperty(value = "查看量")
    private Integer lookCount;


}
